package org.example._07aop.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 测试类
 */
public class TestCalculator {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext("org.example._07aop.aop");
        CalculatorImpl calculator = context.getBean(CalculatorImpl.class);
        calculator.add(20, 10);
    }
}








